import {request} from "@/network/request-config";


export function getAllEmployeeAPI(data){
    return request({
        url:"/hems/employee/querybypage",
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

// 根据岗位id获取员工列表信息
export function getEmployeesByPortAPI(id){
    return request({
        url:"/hems/employee/querybyport/"+id,
        method:"get",
    }).then(res=>{
        return res
    })
}

export function addEmployeeAPI(data){
    return request({
        url:"/hems/employee/add",
        method:"post",
        data,
    }).then(res=>{
        return res
    })
}

export function modEmployeeAPI(data){
    return request({
        url:"/hems/employee/mod",
        method:"post",
        data,
    }).then(res=>{
        return res
    })
}

// 获取全部岗位以及岗位雇员信息
export function getAllEmployeeAndPortAPI(){
    return request({
        url:"/hems/employee/query/allports",
        method:"get",
    }).then(res=>{
        return res
    })
}
